package com.AAL.Model;

import java.io.Serializable;
import javax.persistence.*;

import java.util.List;


/**
 * The persistent class for the TypesOfWheel database table.
 * 
 */
@Entity
public class TypesOfWheel implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="TypeOfWheelID")
	private String typeOfWheelID;

    @Lob()
	@Column(name="Description")
	private String description;

    @Lob()
	@Column(name="Figure")
	private String figure;

    @Lob()
	@Column(name="ProductBenifit")
	private String productBenifit;

	@Column(name="ProductName")
	private String productName;

    @Lob()
	@Column(name="Technology")
	private String technology;

	//bi-directional many-to-one association to TypeOfAuto
	@ManyToOne(cascade={CascadeType.REFRESH}, fetch=FetchType.EAGER)
	@JoinColumn(name="TypeOfAutoID")
	private TypeOfAuto typeOfAuto;

	//bi-directional many-to-one association to WheelDetail
	@OneToMany(mappedBy="typesOfWheel", cascade={CascadeType.REMOVE, CascadeType.REFRESH})
	private List<WheelDetail> wheelDetails;

    public TypesOfWheel() {
    }

	public String getTypeOfWheelID() {
		return this.typeOfWheelID;
	}

	public void setTypeOfWheelID(String typeOfWheelID) {
		this.typeOfWheelID = typeOfWheelID;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getFigure() {
		return this.figure;
	}

	public void setFigure(String figure) {
		this.figure = figure;
	}

	public String getProductBenifit() {
		return this.productBenifit;
	}

	public void setProductBenifit(String productBenifit) {
		this.productBenifit = productBenifit;
	}

	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getTechnology() {
		return this.technology;
	}

	public void setTechnology(String technology) {
		this.technology = technology;
	}

	public TypeOfAuto getTypeOfAuto() {
		return this.typeOfAuto;
	}

	public void setTypeOfAuto(TypeOfAuto typeOfAuto) {
		this.typeOfAuto = typeOfAuto;
	}
	
	public List<WheelDetail> getWheelDetails() {
		return this.wheelDetails;
	}

	public void setWheelDetails(List<WheelDetail> wheelDetails) {
		this.wheelDetails = wheelDetails;
	}
	
}